package model

import "fmt"

type Customer struct {
	Id   int
	Name string
}

func NewCustomer(id int, name string) Customer {
	return Customer{Id: id, Name: name}
}

func NewCustomer2(name string) Customer {
	return Customer{Name: name}
}

func (this Customer) GetInfo() string {
	info := fmt.Sprintf("%v\t %v\t", this.Id, this.Name)
	return info
}
